import 'package:flutter/material.dart';
import 'package:get/get.dart';

class BackBtnComponent extends StatelessWidget {
  BackBtnComponent({Key? key, this.bgColor = Colors.white}) : super(key: key);

  Color bgColor;

  @override
  Widget build(BuildContext context) {
    return Align(
      alignment: Alignment.centerLeft,
      child: Container(
        width: 32,
        height: 32,
        decoration: BoxDecoration(
          shape: BoxShape.circle,
          color: Colors.white,
          boxShadow: [
            BoxShadow(
                color: bgColor.withOpacity(0.8),
                // spreadRadius: 0,
                blurRadius: 7,
                offset: const Offset(1, 2))
          ],
        ),
        child: GestureDetector(
          onTap: (){
            Get.back();
          },
          child: Icon(
            Icons.arrow_back_outlined,
            color: bgColor,
          ),
        ),
      ),
    );
  }
}
